#ifndef __UTIL_H__
#define	__UTIL_H__

#include <stdio.h>
#include "app_cfg.h"
#include "hal_uart/hal_uart.h"
#include "ucos_ii.h"
#include <stdint.h>

#ifdef USE_FULL_ASSERT
void assert_error(uint8_t *func, uint32_t line, uint8_t err_code);

#define  assert_condition(condition, err_code) ((condition) ? \
    assert_error((uint8_t *)__FUNCTION__, __LINE__, err_code) : (void)0) 
#else
#define  assert_condition(condition, err_code)  (void)0
#endif

#endif
